package com.wxzz.elearing.livetelecast.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.wxzz.elearning.common.bean.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.List;

/**
 * <p>
 *
 * </p>
 *
 * @author
 * @since 2021-04-02
 */
@Data
@ApiModel(value = "LivetelecastCategory对象", description = "")
public class LivetelecastCategory extends BaseEntity {

    @ApiModelProperty(value = "分类名称")
    private String categoryName;

    @ApiModelProperty(value = "从小到大排序")
    private Long sort;

    @ApiModelProperty(value = "父级id")
    private Long pid;

    @ApiModelProperty(value = "类型 0-普通直播 1-峰会直播 2-活动直播")
    private Integer type;

    @TableField(exist = false)
    @ApiModelProperty(value = "二级分类")
    private List<LivetelecastCategory> children;

    @TableField(exist = false)
    @ApiModelProperty(value = "旗下直播数量")
    private Integer PlatformLivetelecastNum = 0;

}
